package algorithmTopics.designPatterns.prototypePattern;

/**
 * 形状
 *
 * @author 86155
 * @date 2025/07/22
 */
public abstract class Shape implements Cloneable {
    private String name;
    protected String type;

    abstract void draw();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
